package com.huadi.bgs;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

/**
 * @Author: Crucis-chen
 * @Date: 2022/03/28/15:04
 * @Description:
 */

@SpringBootApplication
public class MainApplication {

    @PostConstruct
    public void init(){
        // 设置ES安全启动，解决Netty启动冲突的问题
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }

    public static void main(String[] args) {
        SpringApplication.run(MainApplication.class, args);
    }

}
